<template>
  <div class="user-icon">
    <img :src="userInfo.avatar" alt="avater" class="avater" />
    <div class="user-icon-right">
      <div class="user-icon-name">{{ userInfo.name }}</div>
      <div class="user-icon-right__bottom">
        <span class="user-icon-date">
          {{ userInfo.time + ' ｜ 来自 ' }}
        </span>
        <span class="user-icon-device">
          {{ userInfo.device }}
        </span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  components: {},
  props: {
    userInfo: {
      type: Object,
      default: () => {
        return {
          name: 'aaa',
          time: '11',
          device: 'flex',
          avater: '',
        }
      },
    },
  },
  data() {
    return {}
  },
  watch: {},
  computed: {},
  methods: {},
  created() {
  },
  mounted() {},
}
</script>
<style lang="scss" scoped>
.user-icon {
  display: flex;
  align-items: center;
}
.avater {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 8px;
}
.user-icon-name {
  font-weight: 500;
}
.user-icon-date {
  opacity: 0.4;
  font-size: 0.1em;
  line-height: 15px;
  font-weight: 400;
}
.user-icon-device {
  opacity: 0.4;
  font-family: Gotham-Book;
  font-size: 0.1em;
  line-height: 15px;
  font-weight: 300;
}
</style>
